import request from '@/utils/request'

// 查询用户详情-发票信息列表
export function listInvoiceInfo(query) {
  return request({
    url: '/boss/invoiceInfo/list',
    method: 'get',
    params: query
  })
}

// 查询用户详情-发票信息详细
export function getInvoiceInfo(contactId) {
  return request({
    url: '/boss/invoiceInfo/' + contactId,
    method: 'get'
  })
}

// 新增用户详情-发票信息
export function addInvoiceInfo(data) {
  return request({
    url: '/boss/invoiceInfo',
    method: 'post',
    data: data
  })
}

// 修改用户详情-发票信息
export function updateInvoiceInfo(data) {
  return request({
    url: '/boss/invoiceInfo',
    method: 'put',
    data: data
  })
}

// 删除用户详情-发票信息
export function delInvoiceInfo(contactId) {
  return request({
    url: '/boss/invoiceInfo/' + contactId,
    method: 'delete'
  })
}
